package base

import "payme3000/framework/config_center"

type (
	// IRepository DB资源访问模块
	IRepository interface {
		IModule
		ISetConfigCenter
		placeholderRepository()
	}

	// Repository IRepository的基础实现
	Repository struct {
		Module

		ConfigCenter *config_center.ConfigCenter // 配置中心
	}
)

func (r *Repository) SetConfigCenter(configCenter *config_center.ConfigCenter) {
	r.ConfigCenter = configCenter
}

func (r *Repository) placeholderRepository() {}
